package com.leo.ibatis.demo.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.leo.ibatis.demo.criteria.SupplierCriteria;
import com.leo.ibatis.demo.domain.Supplier;

public interface SupplierDao {

	void insert(Supplier supplier) throws DataAccessException;

	int update(Supplier supplier) throws DataAccessException;

	int delete(int suppid) throws DataAccessException;

	Supplier select(int suppid) throws DataAccessException;

	List<Supplier> list(SupplierCriteria supplierCriteria) throws DataAccessException;
	
	List<Supplier> listOnPage(SupplierCriteria supplierCriteria) throws DataAccessException;
	
	int count(SupplierCriteria supplierCriteria) throws DataAccessException;

}
